﻿using Grow.Domain.DomainObjects;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Grow.EventBus.Cap.SubscriberDomainEvents
{
    /// <summary>
    /// 定义枚举
    /// </summary>
    public class SubscriberDomainEventStatus : EnumerationBase
    {
        public static SubscriberDomainEventStatus Fail = new ("1", nameof(Fail).ToLowerInvariant());
        public static SubscriberDomainEventStatus Success = new ("2", nameof(Success).ToLowerInvariant());
        public static SubscriberDomainEventStatus Wait = new("3", nameof(Wait).ToLowerInvariant());

        public SubscriberDomainEventStatus(string id, string name)
            : base(id, name)
        {
        }
    }
}
